<?php

use Illuminate\Database\Seeder;
use App\Models\DailyChallenge;

class DailyChallengeSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $challenges = [
            [
                'challenge_key' => 'compliment_ai',
                'title' => '真诚夸赞',
                'description' => '用一句话真诚地夸赞AI角色，让对方感受到你的善意',
                'difficulty_level' => 1,
                'reward_points' => 10,
                'is_active' => true,
            ],
            [
                'challenge_key' => 'quick_connection',
                'title' => '快速建立联系',
                'description' => '在2分钟内与AI角色建立良好的第一印象',
                'difficulty_level' => 2,
                'reward_points' => 15,
                'is_active' => true,
            ],
            [
                'challenge_key' => 'topic_master',
                'title' => '话题达人',
                'description' => '在一次对话中成功转换3个不同的话题',
                'difficulty_level' => 3,
                'reward_points' => 20,
                'is_active' => true,
            ],
            [
                'challenge_key' => 'empathy_expert',
                'title' => '共情专家',
                'description' => '在安抚类场景中获得80分以上的情感分数',
                'difficulty_level' => 3,
                'reward_points' => 25,
                'is_active' => true,
            ],
            [
                'challenge_key' => 'ice_breaker_pro',
                'title' => '破冰高手',
                'description' => '在冷场救场场景中10秒内成功化解尴尬',
                'difficulty_level' => 4,
                'reward_points' => 30,
                'is_active' => true,
            ],
            [
                'challenge_key' => 'difficult_character',
                'title' => '挑战困难角色',
                'description' => '成功完成与4级或5级难度AI角色的对话训练',
                'difficulty_level' => 4,
                'reward_points' => 35,
                'is_active' => true,
            ],
            [
                'challenge_key' => 'perfect_score',
                'title' => '完美表现',
                'description' => '在任意训练中获得90分以上的最终情感分数',
                'difficulty_level' => 5,
                'reward_points' => 50,
                'is_active' => true,
            ],
            [
                'challenge_key' => 'social_butterfly',
                'title' => '社交蝴蝶',
                'description' => '在一天内与3个不同性格的AI角色成功对话',
                'difficulty_level' => 3,
                'reward_points' => 25,
                'is_active' => true,
            ],
            [
                'challenge_key' => 'conversation_marathon',
                'title' => '对话马拉松',
                'description' => '完成一次超过20轮对话的训练会话',
                'difficulty_level' => 2,
                'reward_points' => 20,
                'is_active' => true,
            ],
            [
                'challenge_key' => 'first_impression',
                'title' => '第一印象',
                'description' => '在初次见面场景中获得对方的联系方式',
                'difficulty_level' => 3,
                'reward_points' => 25,
                'is_active' => true,
            ],
        ];

        foreach ($challenges as $challenge) {
            DailyChallenge::create($challenge);
        }
    }
}